//应用实例
var WxRequest = require('../../utils/webRequest.js');
const app = getApp()

Page({
  data: {
    imgSrc: 'http://www.dlgcm.com/uploads/170825/1-1FR5092ST36.gif',
    inputView: false,
    displayView:true,
    radioValue: '男',
    textAreaContent:'免责条款',
    GFRPoint:'GFR',
    CKDScale:'CKD',
    suggests:'suggests',
    isHiddenPicker:true,
  },
  onLoad: function() {
    wx.setNavigationBarTitle({
      title: app.globalData.Titles[3] //页面标题为路由参数
    })
  },
  //提交
  dataSubmit: function() {
    var that=this;
    this.changeView()
    
    WxRequest.post('/hello',data,this.submitSuccess,this.submitFail);
  },
  //单选框事件
  radioChange: function(e) {
    var that = this;
    that.setData({
      radioValue: e.detail.value
    })
  },
  //切换识图
  changeView:function(){
    var that = this;
    that.setData({
      inputView: !that.data.inputView,
      displayView: !that.data.displayView,
    });
  },
  submitSuccess:function(res){
    var that = this;
    console.log('submitSuccess');
    WxRequest.showSuccessToase();
    
  },
  submitFail:function(res){
    console.log('submitFail');
  }

})